package winterTest.day08;

public class Programmer extends Employee {

	@Override
	public String toString() {
		return "Programmer [getName()=" + getName() + ", getAge()=" + getAge() + ", getWorkOverTimeH()="
				+ getWorkOverTimeH() + ", getSalary()=" + getSalary() + "]";
	}
	public double getWorkOverTimeH() {
		return workOverTimeH;
	}
	public void setWorkOverTimeH(double workOverTimeH) {
		this.workOverTimeH = workOverTimeH;
	}
	private double workOverTimeH;
	public Programmer() {
		super("progammer",0,12000);
	}
	public Programmer(double workOverTimeH) {
		super("programmer",0,12000);
		this.workOverTimeH=workOverTimeH;
	}
	public void coding() {
		System.out.println("I'm writting code!");
	}
	@Override
	public double getSalary() {
		return super.getSalary()+workOverTimeH*100;
	}
}
